package com.zj.docker.enums;

/**
 * @Auther: zj
 * @Date: 2018/12/3 13:38
 * @Description:
 */
public enum  CommonEnum {

    FALSE(1,"false"),
    STATE_PUBLIC(3,"public"),
    IMAGETYPEPRIVATE(2,"本地用户镜像"),
    IMAGETYPEPUBLIC(1,"本地公共镜像"),
    IMAGEHASOPEN1(1,"用户镜像-->公开"),
    IMAGEHASOPEN0(0,"用户镜像-->不公开"),
    IMAFEFULLNAMEISSAME(10,"fullName已经重复，请保证不重复"),
    IMAGE_NAME_CONTAIN_UPPER(11,"fullName包含大写字母，请保证不包含"),
    IMAGE_UPLOAD_ERROR_BY_SUFFIX(12,"file必须是以.tar文件"),
    ERROR10001(100,"createImageByImport出现异常"),
    ERROR_EXPECTION10002(101,"出现未知异常,请联系管理员"),
    ERROR_REMOVE_IMAGE(102,"删除镜像失败，出现异常"),
    PARAM_ERROR(103,"参数错误"),
    CONTAINER_APIKEY_ERROR(104,"api-key失效"),
    CONTAINER_FINDONEBYID_ERROR(105,"该容器不存在"),
    CONTAINER_STATUS_HAS_OPEN(106,"容器须处于开启状态"),
    IMAGE_HAS_EXEIST(107,"该镜像本地已存在"),
    ;


    private Integer code;
    private String message;

    CommonEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
